import { NgModule } from "@angular/core";

import { PostRoutingModule } from "./post-routing.module";
import { PostListComponent } from "./post-list/post-list.component";
import { PostDetailComponent } from "./post-detail/post-detail.component";
import { PostDetailMainComponent } from "./post-detail-main/post-detail-main.component";
import { PostHeadlineComponent } from "./post-headline/post-headline.component";
import { WritePostComponent } from "./write-post/write-post.component";
import { PostComponent } from "./post.component";
import { PostService } from "./post.service";
import { SharedModule } from "src/app/shared/shared.module";
import { CommentListComponent } from "../comment-list/comment-list.component";
import { CommentListService } from "../comment-list/comment-list.service";
import { RouterModule } from "@angular/router";
import { CKEditorModule } from "@ckeditor/ckeditor5-angular";

@NgModule({
  declarations: [
    PostComponent,
    PostListComponent,
    PostDetailComponent,
    PostDetailMainComponent,
    PostHeadlineComponent,
    CommentListComponent
  ],
  imports: [SharedModule, RouterModule, PostRoutingModule, CKEditorModule],
  providers: [PostService, CommentListService]
})
export class PostModule {}
